package org.vehicle.service;

import java.util.List;
import java.util.Map;

import org.vehicle.entity.AlertInfo;
import org.vehicle.entity.PersonInfo;
import org.vehicle.service.base.BaseService;


public interface AlertInfoService extends BaseService<AlertInfo, Long>{
    /**
     * 通过人员列表查询告警信息
     * @param personInfoList
     * @return
     */
	public List<AlertInfo> findAlertInfoByPersonInfoList(List<PersonInfo> personInfoList);
	/**
     * 通过人员id及告警类型查询告警信息
     * @param map
     * @return
     */
	public AlertInfo findAlertInfoByPersonIdAndAlertType(Map<String, Object> map);
	/**
	 * 添加告警信息
	 * @param alertInfo
	 * @param personInfo
	 */
	public void addOrUpdateAlertInfo(AlertInfo alertInfo,PersonInfo personInfo);
}